home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’93 / Macintosh as Internet Server ƒ / inetd / Makefile < prev    next >
Encoding:
Makefile  |  1993-04-14  |  1.2 KB  |  68 lines  |  [TEXT/MPS ]

  1.  
  2. ProgName    =     InetD
  3.  
  4. SymOptions    =    #-sym on
  5.  
  6. CPlusOptions=    -b -mf -mark fcts {SymOptions} ∂
  7.                 -d SystemSevenOrLater=1 ∂
  8.                 -d qDebug=0 ∂
  9.                 -d TRUE=1 ∂
  10.                 -d FALSE=0 ∂
  11.                 -i "{MacTCP}" ∂
  12.                 -i "{myUtils}" ∂
  13.                 -i "{DaemonApp}" ∂
  14.  
  15. DaemonLib    =    "{DaemonApp}"DaemonApp.lib 
  16.  
  17. OBJECTS     =     InetD.cp.o ∂
  18.                 TCP.cp.o ∂
  19.                 UDP.cp.o ∂
  20.                 
  21. RSRC        =    InetD.r ∂
  22.                 InetD.rsrc ∂
  23.                 "{SourceDir}inetd:Version.rsrc"
  24.  
  25. {ProgName} ƒƒ {OBJECTS} {DaemonLib}
  26.     Link     -d -mf -t 'appe' -c 'inet' ∂
  27.             {SymOptions} ∂
  28.             {OBJECTS} ∂
  29.             {DaemonLib} ∂
  30.             "{myUtils}"myUtils.o ∂
  31.             "{CLibraries}"CplusLib.o ∂
  32.             "{CLibraries}"StdCLib.o ∂
  33.             "{Libraries}"Runtime.o ∂
  34.             "{Libraries}"Interface.o ∂
  35.             -o "{ProgName}"
  36.  
  37. InetD.cp.o ƒ InetD.cp InetD.h {DaemonLib}
  38. TCP.cp.o ƒ TCP.cp TCP.h
  39. UDP.cp.o ƒ UDP.cp UDP.h
  40.  
  41. {ProgName} ƒƒ {RSRC}
  42.     Rez InetD.r -append -o {ProgName};
  43.     SetFile -t 'appe' -c 'inet' -a B {ProgName};
  44.  
  45. #{ProgName} ƒƒ {OBJECTS} {RSRC} {DaemonLib}
  46. #    Duplicate -y {ProgName} "{SystemFolder}Extensions:"
  47.     
  48.  
  49. {DaemonLib} ƒ
  50.     set echo 0;
  51.     set cur `pwd`;
  52.     cd "{DaemonApp}"; myBuildProgram;
  53.     cd "{cur}";
  54.     set echo 1
  55.  
  56.  
  57. all ƒƒ
  58.     myBuildProgram 
  59.     RMake 
  60.  
  61.  
  62. clean ƒƒ
  63.     set exit 0;
  64.     (rm ≈.o test) ∑ dev:null
  65.     set exit 1;
  66.     RMake clean
  67.  
  68.